package com.mybatisplus.sunpineshop.works.service.impl;

import com.mybatisplus.sunpineshop.works.entity.SWorksLike;
import com.mybatisplus.sunpineshop.works.mapper.SWorksLikeMapper;
import com.mybatisplus.sunpineshop.works.service.SWorksLikeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-02-25
 */
@Service
@Primary
public class SWorksLikeServiceImpl extends ServiceImpl<SWorksLikeMapper, SWorksLike> implements SWorksLikeService {

    @Autowired
    SWorksLikeMapper sWorksLikeMapper;

    @Override
    public List<Map> getHotWorksList() {
        List<Map> sWorksLikeList = sWorksLikeMapper.getHotWorksList();
        return sWorksLikeList;
    }
}
